{include file=member.header.html} 
<script>
$(function(){
	$('#deposit-withdraw').submit(function(){
		if($(this).find('input[name="money"]').val()=='' || $(this).find('input[name="money"]').val() <= 0) {
			errormsg('{$lang.withdraw_money_error}');
			return false;
		}
	});
})
</script>
<div class="margin10 deposit">
	<div class="deposit-withdraw"> 
		<!--{if $deposit_account.money gt 0}--> 
		<!--{if !$bank_list}-->
		<div class="notice-word">
			<p>您还没有设置提现银行卡，请先设置后再申请提现。<a href="{url app=bank&act=add}">马上设置</a></p>
		</div>
		<!--{else}-->
		<div class="notice-word">
			<p>提现申请经审核通过之后，平台将向您的提现银行卡汇款，请确保银行卡信息正确</p>
		</div>
		<form method="get" id="deposit-withdraw">
			<input type="hidden" name="app" value="deposit" />
			<input type="hidden" name="act" value="withdraw_confirm" />
			<div class="title pb10 clearfix">
				<h2>提取余额到银行卡</h2>
				<p class="mt10 fs14">余额：<strong>{$deposit_account.money}</strong> 元</p>
				<div class="btn-metro">
					<a class="btn-add-bank" href="{url app=bank&act=add&type=debit}">+添加银行卡</a>
					<a class="btn-drawlist" href="{url app=deposit&act=drawlist}">提现记录</a>
				</div>
			</div>
			<div class="form">
				<dl class="mb10 clearfix">
					<dt class="mb10">&nbsp;</dt>
					<dd class="rebuildWrap"> 
						<!--{foreach from=$bank_list item=bank name=fe_bank}-->
						<div class="bank-each rebuildInput clearfix {if $smarty.foreach.fe_bank.first} selected {/if}">
							<label for="bank{$smarty.foreach.fe_bank.iteration}" >
							<div class="radio float-left">
								<input name="bid" type="radio" value="{$bank.bid}" {if $smarty.foreach.fe_bank.first} checked="checked" {/if} id="bank{$smarty.foreach.fe_bank.iteration}"/>
							</div>
							<div class="bank-name float-left">{$bank.bank_name}</div>
							<div class="bank-num float-left">{$bank.num}</div>
							</label>
						</div>
						<!--{/foreach}--> 
					</dd>
				</dl>
				<dl class="clearfix">
					<dt></dt>
					<dd>
						<input placeholder="提现金额，单位元" type="text" name="money" class="input-s1" value="" />
					</dd>
				</dl>
				<dl class="clearfix">
					<dt>&nbsp;</dt>
					<dd class="submit"><input class="btn-alipay" type="submit" value="下一步" /></dd>
				</dl>
			</div>
		</form>
		<!--{/if}--> 
		<!--{else}-->
		<div class="notice-word">
			<p>您目前账户余额为<span class="f60">0</span>元，不能申请提现。</p>
		</div>
		<!--{/if}--> 
	</div>
</div>
{include file=footer.html} 